package com.example.fw;

import java.io.IOException;


public class ProcessHelper extends HelpersBase {

	private Process proc;

	public ProcessHelper(ApplicationManager applicationManager) {
	  super(applicationManager);
  }
	
	public void startApplicationUnderTest() throws IOException {
		String command = manager.getProperty("app.path");
		proc = Runtime.getRuntime().exec(command);
		
	}

	public void stopApplicationUnderTest() {
		// close application
		manager.getAutoItHelper().click("Exit");
		proc.destroy();
	}

}
